Skip to content

Perform wildcard capture in overloading resolution #11673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 10, 2021

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Mar 9, 2021

Fixes #8955

This kicks in if an argument is of wildcard type, say, C[?},
and one or more alternatives have a poymorphic method type
with type parameter T and corresponding parameter type
C[T]. We did wildcard capture for regular applications, but
not for applicability testing of overloaded alternatives.

odersky added 3 commits March 9, 2021 18:31
Fixes scala#8955

This kicks in if an argument is of wildcard type, say, C[?},
and one or more alternatives have a poymorphic method type
with type parameter `T` and corresponding parameter type
`C[T]`. We did wildcard capture for regular applicatiins, but
not for applicability testing of overloaded alternatives.
@odersky odersky requested a review from smarter March 9, 2021 21:18
@smarter smarter merged commit a147975 into scala:master Mar 10, 2021
@smarter smarter deleted the fix-8955 branch March 10, 2021 16:51
@Kordyjan Kordyjan added this to the 3.0.0 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overload resolution fails for existential
3 participants